<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<script type="text/javascript">

    var cars = ["a","b","c"];
    //List cars = new ArrayList<String>();
    //cars.add("a");
    //cars.add("b");
    //cars.add("b");

    for (var i=0;i<cars.length;i++) {
        document.write(cars[i] + "<br>");
    }

</script>
</body>
</html>